package com.maimao.search.model.goods;

import com.google.common.collect.Lists;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;

/**
 * @author MaoLin Wang
 * @date 2020/12/28 10:21 下午
 */
public class SearchParam {
    private String name;
    private List<String> values;

    private Boolean text;

    public SearchParam() {
    }

    public SearchParam(String name, boolean text,List<String> values) {
        this.name = name;
        this.text=text;
        this.values = values;
    }

    public SearchParam(String name, Set<String> values) {
        this.name = name;
        ArrayList<String> res = Lists.newArrayList(values);
        this.values = res;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<String> getValues() {
        return values;
    }

    public void setValues(List<String> values) {
        this.values = values;
    }

    public Boolean getText() {
        return text;
    }

    public void setText(Boolean text) {
        this.text = text;
    }

    @Override
    public String toString() {
        return "SearchParam{" +
                "name='" + name + '\'' +
                ", values=" + values +
                ", text=" + text +
                '}';
    }
}
